package com.ym.medical.dao;

import com.ym.medical.domain.entity.AddressListEntity;
import com.ym.medical.domain.param.AddressListParam;
import com.ym.medical.domain.vo.AddressListVo;
import com.ym.medical.domain.vo.DoctorLinkVo;
import com.ym.medical.domain.vo.PCMyDoctorVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 通讯录Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface AddressListDao extends Mapper<AddressListEntity> {

	List<DoctorLinkVo> listDoctor(@Param("keywords") String keywords, @Param("userId") Long userId);


	/**
	 * 8
	 * pc 我的关注 医生
	 *
	 * @param model
	 * @param userId
	 * @return
	 */
	List<PCMyDoctorVo> getFocusCollection(
			@Param("model") AddressListParam model,
			@Param("userId") Long userId,
			@Param("fans") String fans);

	/**
	 * 所有与该医生有关系的人
	 * @param doctorId
	 * @return
	 */
	List<AddressListVo> selectBeRelevant(@Param("doctorId") Long doctorId);
}
